﻿<%@ Page Language="C#" MasterPageFile="~/admin.master" AutoEventWireup="true" Inherits="MediaMonitor.Admin.RF_Upload2"
    Theme="default" Title="RF Upload - TV, Radio, Cable" CodeBehind="rf-upload2.aspx.cs" %>
 <%@ Import Namespace="Adex" %>
<%@ Import Namespace="MediaMonitor.Common" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script src="../rad-scripts/rad.js" type="text/javascript"></script>  
    </telerik:RadCodeBlock>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Body" Runat="Server">
    <br /><br /><br />
<script type="text/javascript">
    function ShowHideDiv(div, show) {
        if (show) {
            div.style.display = 'block';
            document.getElementById('dvUpload').style.display = 'none';
        }
        else {
            div.style.display = 'none';
            document.getElementById('dvUpload').style.display = 'block';
        }
    
    }
</script>


     <%--<asp:UpdatePanel ID="pnlUpdate" runat="server">
        <ContentTemplate>--%>  
  
    <h3>Country: <b style="color:Black;"><%=AppUser.GetCountryName().ToUpper()%></b></h3>
    <br /> 
    <div>

     <asp:Panel ID="pnlUpload" runat="server">
     <div style="text-align:center">
    
     <div id="dvUpload" class="Box" style="width:400px; padding-bottom:15px;" align="center">
      <h2>Upload RF CSV File: 
      </h2>
         File 1:
         <asp:FileUpload ID="flRF1" runat="server" /><br /><br />
         File 2:
         <asp:FileUpload ID="flRF2" runat="server" /><br />
         <br />
         File 3:
         <asp:FileUpload ID="flRF3" runat="server" /><br />
         <br />
         File 4:
         <asp:FileUpload ID="flRF4" runat="server" /><br />
         <br />
         File 5:
         <asp:FileUpload ID="flRF5" runat="server" /><br />
         <br />
         File 6:
         <asp:FileUpload ID="flRF6" runat="server" /><br />
         <br />
         File 7:
         <asp:FileUpload ID="flRF7" runat="server" />    
        <br />
         <asp:CheckBox runat="server" ID="chkPriliminaryData" Text="Preliminary Data" Font-Size="14px" />
         <br />
         <asp:CheckBox runat="server" ID="chkSendToSpecificClients" Text="Send CSV to selected Clients" Font-Size="14px" />
         <br /><br /><br />
         <div style="border:solid 2px #787878; padding:5px; padding-bottom:8px; padding-left:4px; padding-right:3px; background-color:#dedede; text-align:center;"> 
           <asp:ImageButton ID="btnUpload" runat="server" SkinID="Upload" OnClientClick="javascript:ShowHideDiv(document.getElementById('dvUploading'), true)"
               OnClick="btnUpload_Click" /> 
            </div>
     </div>
    
         <div>

             
    
        <telerik:radgrid id="radGrid" runat="server" allowfilteringbycolumn="True" allowpaging="false"
            allowsorting="True" gridlines="None" skin="Hay" onneeddatasource="radGrid_NeedDataSource"
            width="100%" autogeneratecolumns="false" groupingsettings-casesensitive="false" AllowMultiRowSelection="true"
               >
                <MasterTableView DataKeyNames="CompanyCode" ExpandCollapseColumn-Display="true" GroupLoadMode="Client">
                    <Columns>
                        

                      <telerik:GridClientSelectColumn ButtonType="LinkButton" Text="Select" />
                      
                       <telerik:GridImageColumn DataImageUrlFields="Logo" DataImageUrlFormatString="../get-thumb.aspx?f=images/companies/tn/{0}&w=70" HeaderText="Logo" AllowFiltering="false" />
                        <telerik:GridBoundColumn  AutoPostBackOnFilter="true" DataField="CompanyCode" HeaderText="Code" FilterControlWidth="34" />
                        <telerik:GridBoundColumn  AutoPostBackOnFilter="true" DataField="CompanyName" HeaderText="Company Name" />
                       
                        
                        <telerik:GridBoundColumn   DataField="Active" HeaderText="Active" />
                        
                     
                    </Columns>
                     
                </MasterTableView>
                <ClientSettings>
                    <Scrolling AllowScroll="false" />
                    <Selecting AllowRowSelect="true" />
                    
                    
                </ClientSettings>
                <FilterMenu OnClientShowing="MenuShowing" />
            </telerik:radgrid>
    

               
                   
    


         </div>
        <%--  <asp:ImageButton ID="imgBtnSendCSVFiles" runat="server" SkinID="Upload" OnClick="imgBtnSendCSVFiles_Click" 
                />--%>

     </div>
     
    
     <div id="dvUploading" class="GrayBox" style="display:none; text-align:center; width:300px;" align="center">
        <h3>Processing...</h3>
         <img src="../App_Themes/default/ajax/loadingAnimation.gif" />
         <br />
         <br />

     </div>

     </asp:Panel>
       
    
     <asp:Panel ID="pnlInfo1" runat="server" Visible="false">
        <center>
        <div class="Box" style="width:400px; text-align:center;">
            <asp:Label runat="server" ID="csvResult" ></asp:Label>
         File 1: <u>Status</u>
         <asp:Label ID="lblInfo1" runat="server" Font-Bold="true">
            
         </asp:Label>
         <br /><br />
        </div>
        </center>
     </asp:Panel>

     <br />
    <asp:Panel ID="pnlInfo2" runat="server" Visible="false">
        <center>
           
            <div class="Box" style="width: 400px; text-align: center;">
                 File 2: <u>Status</u>
                 <asp:Label ID="lblInfo2" runat="server" Font-Bold="true">
            
                </asp:Label>
                <br />
                <br />
            </div>
        </center>
    </asp:Panel>
    <br />
    <asp:Panel ID="pnlInfo3" runat="server" Visible="false">
        <center>
            <div class="Box" style="width: 400px; text-align: center;">
                File 3: <u>Status</u>
                <asp:Label ID="lblInfo3" runat="server" Font-Bold="true">
            
                </asp:Label>
                <br />
                <br />
            </div>
        </center>
    </asp:Panel>
    <br />
    <asp:Panel ID="pnlInfo4" runat="server" Visible="false">
        <center>
            <div class="Box" style="width: 400px; text-align: center;">
                File 4: <u>Status</u>
                <asp:Label ID="lblInfo4" runat="server" Font-Bold="true">
            
                </asp:Label>
                <br />
                <br />
            </div>
        </center>
    </asp:Panel>
    <br />
    <asp:Panel ID="pnlInfo5" runat="server" Visible="false">
        <center>
            <div class="Box" style="width: 400px; text-align: center;">
                File 5: <u>Status</u>
                <asp:Label ID="lblInfo5" runat="server" Font-Bold="true">
            
                </asp:Label>
                <br />
                <br />
            </div>
        </center>
    </asp:Panel>
    <br />
    <asp:Panel ID="pnlInfo6" runat="server" Visible="false">
        <center>
            <div class="Box" style="width: 400px; text-align: center;">
                File 6: <u>Status</u>
                <asp:Label ID="lblInfo6" runat="server" Font-Bold="true">
            
                </asp:Label>
                <br />
                <br />
            </div>
        </center>
    </asp:Panel>
    <br />
    <asp:Panel ID="pnlInfo7" runat="server" Visible="false">
        <center>
            <div class="Box" style="width: 400px; text-align: center;">
                File 7: <u>Status</u>
                <asp:Label ID="lblInfo7" runat="server" Font-Bold="true">
            
                </asp:Label>
                <br />
                <br />
            </div>
        </center>
    </asp:Panel>
    <%-- </ContentTemplate>
     </asp:UpdatePanel>--%>
 </div>
    <div></div>
<asp:GridView id="gv" runat="server"  AutoGenerateColumn="true" 
  ></asp:GridView>

</asp:Content>

